package com.share.demo.service.redis;

import com.share.demo.service.HelloService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
*
* @date 2017/12/17
* @author caifan 
*
*/
public class RedisConsumer {
    public static void main(String[] args) throws Exception {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[]{"spring-dubbo-redis-consumer.xml"});
        context.start();
        System.out.println("consumer start success!");
        HelloService helloService = (HelloService) context.getBean("helloService");
        String hello = helloService.sayHello("zhangsan");
        System.out.println(hello);


    }
}
